HapticPattern <Clone>$()

book_4_sparkGenerated
code_blocksInput

Description

The Clone method in the HapticPattern class is a virtual method that creates a new instance of the HapticPattern class, duplicating the current instance. This method is useful when you need to create a copy of a haptic pattern with the same properties and values as the original.

Usage

To use the Clone method, simply call it on an existing instance of HapticPattern. The method returns a new HapticPattern object that is a copy of the original.

Example

// Create an instance of HapticPattern
HapticPattern originalPattern = new HapticPattern();

// Clone the original pattern
HapticPattern clonedPattern = originalPattern.Clone();

// Now you have two separate instances with the same properties
// originalPattern and clonedPattern are independent of each other